<template>
  <div class="new-layout-logo-in">

    <div class="logo-bg">
      <div class="container">
        <div class="title"><span>{{ title }}</span></div>
        <div class="sub-title" style="text-align: center;">
          <!-- <div>传播安全和应急管理知识 | 增强安全和应急管理能力</div>
          <div style="margin-top: 10px;">提升安全和应急管理能力</div> -->
        </div>
        <div class="bg-image"></div>
      </div>
    </div>
    <div class="login-content">
      <div class="container">
        
        <app-main />
        <div class="footer" v-html="siteData.copyRight" />
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import AppMain from '@/layout/components/AppMain'

export default {
  name: 'LoginLayout',
  components: { AppMain },
  computed: {
    ...mapGetters([
      'siteData'
    ]),
    title() {
      return this.siteData.siteName
    }
  }
}
</script>

<style lang="less" scoped>
// @import "~@/styles/login.scss";
.new-layout-logo-in {
  width: 100%;
  min-width: 1200px;
  display: flex;
  height: 100%;

  .logo-bg {
    position: relative;
    -webkit-box-flex: 1187;
    -ms-flex: 1187;
    flex: 1187;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: url(./bgc.png) no-repeat;
    display: flex;

    .container {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
    }

    .title {
      color: #fff;
      font-weight: 400;
      font-size: 2.75rem;
    }

    .sub-title {
      margin: 2.125rem 0 4.5625rem;
      color: #fff;
      font-weight: 400;
      font-size: 1.125rem;
    }

    .bg-image {
      width: 52%;
      min-width: 402px;
      height: 48%;
      min-height: 365px;
    }
  }
}

.login-content {
  display: -webkit-box;
  display: -ms-flexbox;
  // display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  -webkit-box-flex: 733;
  -ms-flex: 733;
  flex: 733;
  overflow-y: auto;
  .container {
    // flex-direction: column;
    width: 27rem;

    display: -webkit-box;
    display: -ms-flexbox;
    // display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    ::v-deep .app-main{
      height: auto;
      min-height: 300px;
      padding: 10px 0;
    }
}

  .title {
    color: #333;
    font-weight: 700;
    font-size: 32px;
  }
}
</style>

